//
//  PartRepairController.h
//  Ghac 4S
//
//  Created by apple on 11-8-29.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MyPickerViewController.h"
#import "DataProvideProtocol.h"
#import "InnerViewAction.h"
#pragma once
#define REPAIR_ISEVERSEARCH @"repair_isEverSearch"
#define REPAIR_CARTYPE      @"repair_cartype"



@class KXML;

@interface PartRepairController : UIViewController <UITextFieldDelegate, MyPickerViewControllerDelegate, UIScrollViewDelegate, DataProvideProtocol, UITableViewDataSource, UITableViewDelegate, InnerViewAction>
{
    NSUserDefaults*             m_defaultValue;
    MyPickerViewController*     m_pickerViewController;
    KXML*                       m_partsXML;
    NSMutableArray*             m_partsSumList;
    NSData*                     m_storeData;
}
@property (nonatomic, retain) IBOutlet UITextField* runsUntilLastCare;
@property (nonatomic, retain) IBOutlet UITextField* timeSpendUntilLastCare;
@property (nonatomic, retain) IBOutlet UITextField* runsInAll;
@property (nonatomic, retain) IBOutlet UITextField* timeInAll;

@property (nonatomic, retain) IBOutlet UIView*      searchView;
@property (nonatomic, retain) IBOutlet UIView*      listView;
@property (nonatomic, retain) IBOutlet UIButton*    cartypeBtn;
@property (nonatomic, retain) IBOutlet UITableView* listTable;
@property (nonatomic, retain) IBOutlet UIButton*    searchBtn;
@property (nonatomic, retain) IBOutlet UILabel*     carTypeLabel;
@property (nonatomic, retain) IBOutlet UILabel*     carInfoLabelOnList;
@property (nonatomic, retain) IBOutlet UILabel*     carInfoLabelOnSearch;

-(IBAction)cartypeBtnClick:(id)sender;
-(IBAction)searchSubmit:(id)sender;
-(IBAction)leftBtnClick:(id)sender;
-(BOOL)checkForm;
@end
